package com.pro.service;

import com.pro.pojo.*;
import org.apache.ibatis.annotations.Param;
//import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @Author 谭金诚
 * @Description TODO
 * @Date 2022/1/10 10:56
 * @Version 1.0
 */
public interface MicrocircleService {

    List<JsLog> getLog(JsLog jsLog);

    boolean delLog(Integer logId);

    List<JsMicrocircle> getMyMicrocircleList(JsMicrocircle jsMicrocircle);

    Integer getMyMicrocircleCollectionNums(Integer microcircleId);

    boolean delMicroCircle(Integer microcircleId);

    JsActicleCategroy queryMicroCircleClass(Integer acticleCategroyId);

    List<JsComment> getMicroCircleComment(@Param("commodityId") Integer commodityId, @Param("type") Integer type);

    boolean hideComment(Integer id, Integer display);

    boolean delComment(Integer id, String status);

    boolean addMicroCircleComment(JsComment jsComment);

    List<JsActicleCategroy> getJsActicleCategroy();
    //添加ztree树节点
    boolean addZtree(JsActicleCategroy jsActicleCategroy);
    //删除树节点
    boolean delZtree(Integer acticleCategroyId);
    //修改树节点
    boolean updateZtree(String artcleCategroyName, Integer acticleCategroyId);
    //查询草稿状态微圈
    JsMicrocircle getDraftMicrocircle(Integer details);
    //修改草稿状态微圈
    boolean updateDraftMicrocircle(JsMicrocircle jsMicrocircle);
    //添加微圈
    boolean addDraftMirList(JsMicrocircle jsMicrocircle);
    //添加微圈图片表
    boolean addMirImg(JsMicrocircleImg jsMicrocircleImg);
    //发布微圈（直接发布）
    boolean addMicrocircle(JsMicrocircle jsMicrocircle);
    //添加微圈操作日志
    boolean addLog(JsLog jsLog);
    //微圈统计
    List<JsMicrocircle> getStatistics();
}
